import React from 'react'
import "./seckill.css"
export default function Seckill(props) {
    return (
        <div className="seckillBox">
            <h3>秒杀</h3>
            <div className="seckill">
                {
                    props.seckill.map(item => (
                        <div className="goods" key={item.id}>
                            <div><img src={item.img} alt="" /></div>
                            <div>
                                <p>{item.goodsname}</p>
                                <p className="old">原价:{item.market_price}</p>
                                <p>现价: <span>{item.price}</span></p>
                            </div>
                        </div>
                    ))
                }
            </div>
        </div>

    )
}
